package com.jiangnan.repository

import com.jiangnan.api.client.BookApiClient

class CreditRepository {

  suspend fun returnBook(
    userId: Long, borrowId: Long,
    borrowDate: String, returnDate: String
  ) = BookApiClient.credentialApiService.returnBook(userId, borrowId, borrowDate, returnDate)

  suspend fun getCredit(userId: Long) = BookApiClient.credentialApiService.getCredit(userId)

  suspend fun getLogs(userId: Long) = BookApiClient.credentialApiService.getLogs(userId)
}